"""          
Time : 2024/6/6 下午2:47
Author : TJC
@FileName: el_gxhy_sk.py
@Desc: 定位获取元素
"""
from selenium.webdriver.common.by import By

by_id = By.ID
by_name = By.NAME
by_cname = By.CLASS_NAME
by_tab_name = By.TAG_NAME
by_link = By.LINK_TEXT
by_css = By.CSS_SELECTOR
by_xpath = By.XPATH

#登录页面元素
login_username = (by_xpath, '//input[@placeholder="请输入账号"]')
login_password = (by_xpath, '//input[@placeholder="请输入密码"]')
login_right_code = (by_xpath, '//div[@class="solid"]')
login_btn_click = (by_xpath, "//button/*[contains(text(), '登录')]")
login_value = (by_xpath, '//div[@class="el-notification__content"]/p')